package com.book.app.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.book.app.dao.BookDao;
import com.book.app.entity.Book;
import com.book.app.service.BookService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Book)表服务实现类
 *
 * @author wjy
 * @since 2021-09-22 08:48:08
 */
@Service("bookService")
public class BookServiceImpl extends ServiceImpl<BookDao, Book> implements BookService {
    @Resource
    private  BookDao bookDao;

    @Override
    public List<Book> findPager(Integer page, Integer limit, String bnum, String bname) {
        return bookDao.findPager((page-1)*limit,limit,bnum,bname);
    }
}

